package oop4.graph;

/**
 * @author oldliu
 * @since 1.0
 */
public class Circle extends Graph {
    public static final double PI=3.1415926;
    private  double radius;

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }


    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }


    @Override
    public double c() {
        return  2*PI*radius;
    }

    @Override
    public double f() {
        return  PI*this.radius*this.radius;
    }
}
